import request from '@/utils/request'

export function getAuditNews(data) {
  return request.get('/admin/news/audit', {
    params: data
  })
}
export function getNews(data) {
  return request.get('/admin/news', {
    params: data
  })
}
export function getNewsList(data) {
  return request.get('/admin/news/list', {
    params: data
  })
}
export function getNewsComplaint(data) {
  return request.get('/admin/news/complaint', {
    params: data
  })
}
export function postNewsComplaint(data) {
  return request.post('/admin/news/complaint', data)
}
export function postNewsState(data) {
  return request.post('/admin/news/state', data)
}

export function postAudit(data) {
  return request.post('/admin/audit', data)
}
